import json

import requests

s = requests.Session()

data = {"userName":"sAdmin",
"password": "sAdmin_123"}


response = s.post(url="http://gisapi.yong-gang.cn/a/login",json=data)

print(type(response.json()))
dict_token = response.json()
print(dict_token["data"]["accessToken"])




data2 = { "userCode": "019582"}
res = s.post(url="http://gisapi.yong-gang.cn/p/personPower/query",json=data2)
print(res.json())
